-
Notifications
You must be signed in to change notification settings - Fork 8.1k
drivers: mipi-dbi-spi: fix initialization of SPI CS #97366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: mipi-dbi-spi: fix initialization of SPI CS #97366
Conversation
b3f9427
to
7a68575
Compare
Failing CI test is due to #97379 |
Set cs_is_gpio only if there is a GPIO CS, configure the CS as a native hardware CS if not This fixes incorrectly trying to use a GPIO CS when there isn't one Signed-off-by: Jeremy Dick <[email protected]>
7a68575
to
fe468c5
Compare
|
+1 to this PR Thanks. |
.delay = (delay_), \ | ||
.cs_is_gpio = true, \ | ||
COND_CODE_1(DT_SPI_DEV_HAS_CS_GPIOS(node_id), \ | ||
(SPI_CS_CONTROL_INIT_GPIO(node_id, _delay)), \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(SPI_CS_CONTROL_INIT_GPIO(node_id, _delay)), \ | |
(SPI_CS_CONTROL_INIT_GPIO(node_id, delay_)), \ |
Caught by #97581
Set cs_is_gpio only if there is a GPIO CS, configure the CS as a native hardware CS if not
This fixes incorrectly trying to use a GPIO CS when there isn't one